import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.log4j.Logger;

/**
 * @author xgj
 * 
 */
public class Test extends Thread {
    private static Logger logger = Logger.getLogger("Testxx");
    static String hello = "Hello";

    private final static String SEPARATOR = "\r\n";

    public static void fn(String s1, String... parts) {

    }

    public static void main(final String[] args) throws Exception {
        Pattern oldWordIdRegex = Pattern.compile("^\\d+，([-\\w\\s]+)((\\[.+\\])*)$");
        Matcher matcher = null;
        String line = "57，at the bottom of one's heart";
        matcher = oldWordIdRegex.matcher(line);
        if (matcher.matches()) {
            for (int i = 0; i < matcher.groupCount(); i++) {
                    System.out.println(matcher.group(i));
            }
        }
    }
}
